import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path:'/yiqing',
    name:'Yiqing',
    component: () => import('../views/yiqing/index')
  },
  {
    path:'/user',
    name:'User',
    component: () => import('../views/user/index')
  },
  {
    path:'/ruzhu',
    name:'Ruzhu',
    component:() => import('../views/ruzhuyemian/index')
  },
  {
    path:'/zhufang',
    name:'Zhufang',
    component: () => import('../views/zhufang/index')
  },
  {
    path:'/login',
    name:'Login',
    component: () => import('../views/login/index')
  },
  {
    path:'/guestv',
    name:'Guest',
    
    component: () => import('../views/guest/index')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
